// **************************************************************
// Com ++ Framework by the C++ World
// Please report defects: mailto:compp@cplusplusworld.com
// Please visit: http://www.cplusplusworld.com/socketlibrary.html
// **************************************************************

#include <iostream>
#include <cstdlib>
#include "ComPlusPlus/ComPlusPlus"
 
int main (int argc, char *argv [] ) {

if ( argc != 3 ) {
  std::cout << "Usage " << argv[0] << " [port] [host]\n";
  return 1;
} 
int port = atoi(argv [1]);
std::string host = argv[2];
	
try {	
 // -> Comment 1
 compp::SocketTcp Client;	
 // -> Comment 2
 Client.Connect(host, port) ; 
 // -> Comment 3
 Client.Shutdown(); 
} catch ( syspp::ComException e ) {
	std::cout <<  "Exception " << e.what() << "\n" ;	
}
 return 0;	
}
